body {
  margin: 0px;
  background-image: url(../images/bg.png);
  background-repeat: repeat;
}

.nav {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1px solid #dcdcdc;
}

.nav img {
  display: block;
  height: 41px;
  width: auto;
}

.nav > div:last-of-type {
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: 2rem;
  color: #676b73;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: #3778e5;
  font-weight: bold;
}

.divider {
  margin: 0px 2rem;
  color: #e6e7eb;
}

.lang > div {
  cursor: pointer;
}

.lang > div:nth-of-type(2) {
  height: 2px;
  background-color: #e6e7eb;
  width: 3em;
  transform: rotate(-30deg);
}

.lang > div:nth-of-type(3) {
  text-align: right;
  color: #e6e7eb;
}

.game-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.game-nav img {
  display: block;
  width: 72px;
  height: auto;
  margin: 4px;
}

.game-nav > label {
  cursor: pointer;
  border: transparent 2px solid;
  transition: border-color 0.5s ease-in-out;
}

.game-nav > label:hover {
  border: #3778e5 2px solid;
  border-radius: 2px;
}

input[name='game'] {
  width: 0px;
  height: 0px;
}

.main-box {
  display: flex;
  align-items: flex-start;
}

.main-box > div:first-of-type {
  height: 70vh;
  aspect-ratio: 17 / 11;
}

.main-box > div:last-of-type {
  flex: 1;
  text-align: right;
}

.left-box {
  position: relative;
  background-image: url('../images/bg001.png');
  background-repeat: no-repeat;
  background-position: 0 100%;
  height: 70vh;
  overflow: hidden;
}

.left-box::after {
  content: '';
  position: absolute;
  left: 0px;
  bottom: 0px;
  right: 0px;
  height: 30vh;
  background-image: url(../images/bg.png);
  background-repeat: repeat;
  z-index: 1;
}

.left-box > div {
  z-index: 10;
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  right: 0px;
  display: none;
}

.left-box img {
  display: block;
  width: auto;
  height: 70vh;
  transform: translateX(-15%);
  z-index: 10;
}

#game1:checked ~ .main-box .img001 img,
#game2:checked ~ .main-box .img002 img,
#game3:checked ~ .main-box .img003 img,
#game4:checked ~ .main-box .img004 img,
#game5:checked ~ .main-box .img005 img,
#game6:checked ~ .main-box .img006 img {
  animation: img-move 2s ease-in-out;
}

#game1:checked ~ .main-box .img001,
#game2:checked ~ .main-box .img002,
#game3:checked ~ .main-box .img003,
#game4:checked ~ .main-box .img004,
#game5:checked ~ .main-box .img005,
#game6:checked ~ .main-box .img006 {
  display: block;
  animation: fade 1s ease-in-out;
  animation-delay: 0.3s;
}

@keyframes img-move {
  0% {
    transform: translateX(-100%);
  }
  15% {
    transform: translateX(-100%);
  }
  20% {
    transform: translateX(-20%);
  }
  95% {
    transform: translateX(-10%);
  }
  100% {
    transform: translateX(-15%);
  }
}

@keyframes fade {
  0% {
    filter: opacity(0);
  }
  100% {
    filter: opacity(1);
  }
}

.right-box {
  padding: 1rem 4rem;
  min-width: 42rem;
}

.right-box > div {
  position: relative;
  overflow: hidden;
  display: none;
}

.l1 > p:first-of-type {
  font-size: 4rem;
  font-weight: bold;
  margin: 0px;
  padding-right: 4rem;
}

.l1 > p:last-of-type {
  background-image: linear-gradient(
    -135deg,
    #3778e5,
    #e98bc0,
    #3778e5,
    #e98bc0,
    #3778e5
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.l2 {
  right: 0px;
  height: 4rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.l2 > div {
  height: 1px;
  width: 5rem;
  background-color: #000;
  transform: rotate(-35deg);
}

.l3 {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.3em;
}

.l4 > a {
  display: inline-block;
  margin-left: 1rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

#game1:checked ~ .main-box .right-box > div:nth-of-type(1) {
  display: block;
}

#game1:checked ~ .main-box .right-box > div:nth-of-type(1) .l1 {
  transform: translateX(-10%);
  animation: text-move-in 1.5s ease-in-out;
}

#game1:checked ~ .main-box .right-box > div:nth-of-type(1) .l2 {
  transform: translateX(-10%);
  animation: text-move-in2 2s ease-in-out;
}

#game1:checked ~ .main-box .right-box > div:nth-of-type(1) .l3 {
  transform: translateX(-10%);
  animation: text-move-in3 2.5s ease-in-out;
}

#game1:checked ~ .main-box .right-box > div:nth-of-type(1) .l4 {
  transform: translateX(-10%);
  animation: text-move-in4 3s ease-in-out;
}

#game2:checked ~ .main-box .right-box > div:nth-of-type(2) {
  display: block;
}

#game2:checked ~ .main-box .right-box > div:nth-of-type(2) .l1 {
  transform: translateX(-10%);
  animation: text-move-in 1.5s ease-in-out;
}

#game2:checked ~ .main-box .right-box > div:nth-of-type(2) .l2 {
  transform: translateX(-10%);
  animation: text-move-in2 2s ease-in-out;
}

#game2:checked ~ .main-box .right-box > div:nth-of-type(2) .l3 {
  transform: translateX(-10%);
  animation: text-move-in3 2.5s ease-in-out;
}

#game2:checked ~ .main-box .right-box > div:nth-of-type(2) .l4 {
  transform: translateX(-10%);
  animation: text-move-in4 3s ease-in-out;
}

#game3:checked ~ .main-box .right-box > div:nth-of-type(3) {
  display: block;
}

#game3:checked ~ .main-box .right-box > div:nth-of-type(3) .l1 {
  transform: translateX(-10%);
  animation: text-move-in 1.5s ease-in-out;
}

#game3:checked ~ .main-box .right-box > div:nth-of-type(3) .l2 {
  transform: translateX(-10%);
  animation: text-move-in2 2s ease-in-out;
}

#game3:checked ~ .main-box .right-box > div:nth-of-type(3) .l3 {
  transform: translateX(-10%);
  animation: text-move-in3 2.5s ease-in-out;
}

#game3:checked ~ .main-box .right-box > div:nth-of-type(3) .l4 {
  transform: translateX(-10%);
  animation: text-move-in4 3s ease-in-out;
}

#game4:checked ~ .main-box .right-box > div:nth-of-type(4) {
  display: block;
}

#game4:checked ~ .main-box .right-box > div:nth-of-type(4) .l1 {
  transform: translateX(-10%);
  animation: text-move-in 1.5s ease-in-out;
}

#game4:checked ~ .main-box .right-box > div:nth-of-type(4) .l2 {
  transform: translateX(-10%);
  animation: text-move-in2 2s ease-in-out;
}

#game4:checked ~ .main-box .right-box > div:nth-of-type(4) .l3 {
  transform: translateX(-10%);
  animation: text-move-in3 2.5s ease-in-out;
}

#game4:checked ~ .main-box .right-box > div:nth-of-type(4) .l4 {
  transform: translateX(-10%);
  animation: text-move-in4 3s ease-in-out;
}

#game5:checked ~ .main-box .right-box > div:nth-of-type(5) {
  display: block;
}

#game5:checked ~ .main-box .right-box > div:nth-of-type(5) .l1 {
  transform: translateX(-10%);
  animation: text-move-in 1.5s ease-in-out;
}

#game5:checked ~ .main-box .right-box > div:nth-of-type(5) .l2 {
  transform: translateX(-10%);
  animation: text-move-in2 2s ease-in-out;
}

#game5:checked ~ .main-box .right-box > div:nth-of-type(5) .l3 {
  transform: translateX(-10%);
  animation: text-move-in3 2.5s ease-in-out;
}

#game5:checked ~ .main-box .right-box > div:nth-of-type(5) .l4 {
  transform: translateX(-10%);
  animation: text-move-in4 3s ease-in-out;
}

#game6:checked ~ .main-box .right-box > div:nth-of-type(6) {
  display: block;
}

#game6:checked ~ .main-box .right-box > div:nth-of-type(6) .l1 {
  transform: translateX(-10%);
  animation: text-move-in 1.5s ease-in-out;
}

#game6:checked ~ .main-box .right-box > div:nth-of-type(6) .l2 {
  transform: translateX(-10%);
  animation: text-move-in2 2s ease-in-out;
}

#game6:checked ~ .main-box .right-box > div:nth-of-type(6) .l3 {
  transform: translateX(-10%);
  animation: text-move-in3 2.5s ease-in-out;
}

#game6:checked ~ .main-box .right-box > div:nth-of-type(6) .l4 {
  transform: translateX(-10%);
  animation: text-move-in4 3s ease-in-out;
}

#game1:checked ~ .game-nav label[for='game1'],
#game2:checked ~ .game-nav label[for='game2'],
#game3:checked ~ .game-nav label[for='game3'],
#game4:checked ~ .game-nav label[for='game4'],
#game5:checked ~ .game-nav label[for='game5'],
#game6:checked ~ .game-nav label[for='game6'] {
  border-color: #3778e5;
}

/* 移动动画 */
@keyframes text-move-in {
  0% {
    opacity: 0;
    transform: translateX(10%);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(-10%);
  }
}

@keyframes text-move-in2 {
  0% {
    opacity: 0;
    transform: translateX(10%);
  }
  25% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(-10%);
  }
}

@keyframes text-move-in3 {
  0% {
    opacity: 0;
    transform: translateX(10%);
  }
  33% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(-10%);
  }
}

@keyframes text-move-in4 {
  0% {
    opacity: 0;
    transform: translateX(10%);
  }
  45% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(-10%);
  }
}
